﻿using System;
using WholeSlideImageLibrary.Formats.OptimizedPyramidTiledImage;

namespace WholeSlideImageLibrary
{
    public static class OptimizedPyramidTiledImageReaderBuilderExtensions
    {
        public static IWholeSlideImageReaderBuilder AddOptimizedPyramidTiledImage(this IWholeSlideImageReaderBuilder builder)
        {
            if (builder is null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            builder.AddFormat(new OptimizedPyramidTiledImageIdentifier());

            return builder;
        }
    }
}
